package com.zhong.blog.pojo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class Pwd {
    private String oldPassword;
    @NotNull
    @Size(min = 4,max = 20,message = "只能在4-20位之间")
    private String newPassword;
    private String againPassword;
}
